Conversation
amanmahajan7
left a comment
There was a problem hiding this comment.
This is great. What is the default build target? Does it use baseline-widely-available?
| cleanDir: true | ||
| }, | ||
| outDir: 'lib', | ||
| platform: 'neutral', |
There was a problem hiding this comment.
Should this be platform: 'browser'?
There was a problem hiding this comment.
I don't think so, we want to support SSR as well, so the lib should be compatible with node.
There was a problem hiding this comment.
FYI there's no build output difference at the moment if we set platform: 'browser'
https://tsdown.dev/options/target
No syntax downgrade unless we set |
https://tsdown.dev/
https://github.com/rolldown/tsdown
before
after
build output changes
We've lost the sourcemaps for CSS files, not a major concern.
In the JS, besides empty lines being removed, some const values are inlined:
In the declaration file, the name of namespace imports changed, that's it:
The CSS file is processed by lightningcss, so it has more changes, but nothing major, some highlights: